/**
 * CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

package com.cmcc.zysoft.infocollection.mobile.dao;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import com.cmcc.zysoft.infocollection.model.Industry;
import com.starit.common.dao.hibernate.HibernateBaseDaoImpl;

/**
 * @author 袁凤建
 * <br />邮箱: yuan.fengjian@ustcinfo.com
 * <br />描述: MIndustryDao.java
 * <br />版本: 1.0.0
 * <br />日期: 2013-8-13 下午5:29:30
 * <br />CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

@Repository
public class MIndustryDao extends HibernateBaseDaoImpl<Industry, String> {

	@Autowired
	private JdbcTemplate jdbcTemplate;
	
	/**
	 * 根据行业ID查询行业信息.
	 * @param industryId 行业ID
	 * @return List<Map<String, Object>>
	 */
	public List<Map<String, Object>> getIndustryById(String industryId) {
		String sql = "SELECT a.* FROM tb_b_industry a WHERE a.industry_id = ?";
		return this.jdbcTemplate.queryForList(sql, industryId);
	}
}